﻿#include "dialog_movetorelativepos.h"
#include "ui_dialog_movetorelativepos.h"
#include <QDebug>

Dialog_MoveToRelativePos::Dialog_MoveToRelativePos(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Dialog_MoveToRelativePos)
{
    ui->setupUi(this);
    setWindowTitle(u8"移动指定距离");
}

Dialog_MoveToRelativePos::~Dialog_MoveToRelativePos()
{
    delete ui;
}

void Dialog_MoveToRelativePos::on_buttonBox_accepted()
{
    emit moveToRelPos(ui->lineEdit_X->text().toDouble(), ui->lineEdit_Y->text().toDouble(), 100.0);
}
